/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aljfce.business.profile.boundary;

import com.aljfce.business.entity.User;
import javax.ejb.Stateless;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 *
 * @author Antonio
 */
@Named
@RequestScoped
public class Profile {
    
    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Profile(){
    }
    
    public void showProfile(){
    }
    /**
     * This method redirects to the home page
     * @return 
     */
    public String userHome(){
        return "/user/index?faces-redirect=true";
    }
    /**
     * This method redirects to the page to edit profile data
     * @return 
     */
    public String edit(){
        return "/user/edit?faces-redirect=true";
    }
    /**
     * This method redirects to the page to set the own calendar's visibility
     * @return 
     */
    public String setVisibility(){
        return "/user/visibility?faces-redirect=true";
    }
    /**
     * This method redirects to the page wich allows users to export their calendar
     * @return 
     */
    public String exportCalendar(){
        return "/user/export?faces-redirect=true";
    }
    /**
     * This method redirects to the page wich allows users to import their calendar
     * @return 
     */
    public String importCalendar(){
        return "/user/import?faces-redirect=true";
    }
    
    public String unRegistration(){
        return "/user/unregistration?faces-redirect=true";
    }
    
}
